package com.loren.demo08.example02;

import org.springframework.stereotype.Component;

@Component
public class SwitchPlayGame implements PlayGame {
    @Override
    public void play(String gameName) {
        System.out.println("SwitchPlayGame: " + gameName);
    }

    @Override
    public void afterPropertiesSet() {
        DeviceFactory.addDevice("Switch", this);
    }
}
